package com.hongawen.poi.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2022年03月30日 14:42
 */
@Data
public class Teacher implements Serializable {

    @Excel(name = "班主任", needMerge = true, mergeVertical = true)
    private String name;

    @Excel(name = "年龄", needMerge = true)
    private int age;

    @ExcelCollection(name="学生")
    private List<Student> students;

}
